package com.bishe.demo.modules.ticket.controller;

import com.bishe.demo.modules.ticket.service.ModelSeatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description ModelSeatingController
 * @Author YHQ
 * @Date 2021/4/1 13:38
 */
@RestController
@RequestMapping("/api")
public class ModelSeatingController {
    @Autowired
    private ModelSeatingService modelSeatingService;
    @GetMapping("/sMId/{modelId){}")
    Integer getSMIdByModelId(@PathVariable Integer modelId){
        return modelSeatingService.getSMIdByModelId(modelId);
    }
    @GetMapping("/sMId1/{seatingId}")
    Integer getSMIdBySeatingId(@PathVariable Integer seatingId){
        return modelSeatingService.getSMIdBySeatingId(seatingId);
    }

}
